import request from "@/utils/request";

//分页获取课程信息
export const getCourses = (data) => {
  return request({
    method: "POST",
    url: "/boss/course/getQueryCourses",
    data,
  });
};

//设置课程的上下架状态
export const setCourseStatus = (courseId, status) => {
  return request({
    method: "GET",
    url: "/boss/course/changeState",
    params: {
      courseId,
      status,
    },
  });
};
